AUTOMAKE_OPTIONS= subdir-objects
ACLOCAL_AMFLAGS= ${ACLOCAL_FLAGS}

bin_PROGRAMS= pantoute
pantoute_SOURCES= ./src/IO.cc ./src/structures.cc ./src/heuristics.cc ./src/ExpensiveFirst.cc ./src/main.cc

if HAVE_DOXYGEN
doxyfile.stamp:
	@echo "Building documentation..."
	@$(DOXYGEN) Doxyfile >/dev/null
if HAVE_LATEX
	@cd doc/latex && make >/dev/null
endif
	@echo Timestamp > doxyfile.stamp

CLEANFILES = doxyfile.stamp

all-local: doxyfile.stamp

endif

mrproper: clean

